package com.charger.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName failure
 */
@TableName(value ="failure")
@Data
public class QFailure implements Serializable {
    @TableId(type = IdType.AUTO, value = "failure_id")
    private Long failureId;

    @TableField(value = "failure_type")
    private Object failureType;

    @TableField(value = "failureContent")
    private String failureContent;

    @TableField(value = "failureTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date failureTime;

    @TableField(value = "dispose_id")
    private Long disposeId;

    @TableField(value = "charger_station_id")
    private Long stationId;

    @TableField(value = "charger_id")
    private Long chargerId;

    @TableField(value = "state")
    private Object state;

    @TableLogic(delval = "1", value = "0")
    private Integer del;

    @TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private String status;

    @TableField(exist = false)
    private QChargerStation qChargerStation;

    private static final long serialVersionUID = 1L;
}